
<div id="msg"></div>
<form name="myform" id="myform" action="<if condition="$action_name=='add'">{:U($module_name.'/insert')}<else />{:U($module_name.'/update')}</if>&iscreatehtml=1" method="post">
  <div id="filelist" class="hide"></div>
  <div class="error">
    <ul>
    </ul>
  </div>
  <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
    <tr>
      <td width="10%" ><font color="red">*</font>名称</td>
      <td width="90%" id="box_name"><input type="text"   class="input-text " name="name"  id="name" value="{$vo['name']}" size=""  validate=" required:true" /></td>
    </tr>
    <tr>
      <td width="10%" ><font color="red">*</font>所属分类</td>
      <td width="90%" id="box_catid">
      <select name="catid">
		<option value="">请选择分类</option>
		{$select_categorys}
		</select>
      </td>
    </tr>
    <tr>
      <td width="10%" ><font color="red">*</font>类型</td>
      <td width="90%" id="box_stype"><input type="radio" class="input_radio " name="stype" id="stype_1" value="1" validate=" required:true" {if $vo['stype']!=2} checked{/if} >
        多项
        <input type="radio" class="input_radio " name="stype" id="stype_2"  value="2" {if $vo['stype']==2} checked{/if} >
        录入</td>
    </tr>
    <tr>
      <td width="10%" >选项名称</td>
      <td width="90%" id="box_itemname"><textarea  class="" name="itemname"  rows="6" cols="50"  id="itemname"   />{$vo['itemname']}</textarea><br />当类型为多项时,请在这里一行一个值,名称是"颜色"时,请按照"<strong style="color:#ff0000;">颜色名|颜色值</strong>"的规格录入(如:<strong style="color:#ff0000;">黑色|#000000</strong>).</td>
    </tr>
    <tr>
      <td width="10%" ><font color="red">*</font>发布时间</td>
      <td width="90%" id="box_createtime"><input  class="Wdate input-text  "  validate=" required:true"   name="createtime" type="text" id="createtime" size="25" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'
		})" value="{if $vo['createtime']}{$vo['createtime']|todate}{else}{:date("Y-m-d h:i:s")}{/if}" /></td>
    </tr>
    <tr>
      <td width="10%" >状态</td>
      <td width="90%" id="box_status"><label style="float:left;width:75px" class="checkbox_status" >
          <input type="radio" class="input_radio " name="status" id="status_1" {if $vo[status]!=0}checked="checked"{/if} value="1" >
          已审核</label>
        <label style="float:left;width:75px" class="checkbox_status" >
          <input type="radio" class="input_radio " name="status" id="status_2" {if $vo[status]==0}checked="checked"{/if}  value="0" >
          未审核</label>
          </td>
    </tr>
  </table>
  <div id="bootline"></div>
  <div id="btnbox" class="btn">
    <if condition="$vo['id']!=''">
      <input TYPE="hidden" name="id" value="{$vo.id}">
    </if>
    <input type="hidden"  name="lang" value="{$langid}" />
    <input type="hidden" name="forward" value="{$_SERVER['HTTP_REFERER']}" />
    <INPUT TYPE="submit"  value="{:L('dosubmit')}" class="button" >
    <input TYPE="reset"  value="{:L('cancel')}" class="button">
  </div>
</form>
</div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                